package s3_12;


/**
 * @author Administrator
 */
public class DriverTest {
    public static void main(String[] args) {
        Driver driver = new Driver();
        BMW bmw=new BMW();
        QQ qq=new QQ();
        Benz benz=new Benz();
        driver.run(benz);
        driver.run(bmw);
        driver.run(qq);

        Car audi=new Audi();
        driver.run(audi);
    }
}
